package com.hertz.appr.pojo;

import org.apache.commons.cli.CommandLine;

public class CmdPojo {
	
	public final static short cmdType_guess = 0;
	public final static short cmdType_promote = 1;
	public final static short cmdType_control = 2;
	public final static short cmdType_respond = 3;
	public final static short cmdType_respond4promote = 4;
	public final static short cmdType_respond4guess = 5;
	public final static short cmdType_help = 6;
	public final static short cmdType_action = 7;
	
	private short type ;
	private CommandLine cl;
	private String cmdText;
	private String aidStr;
	private String res;
	private Long aid;
	
	public Long getAid() {
		return aid;
	}
	public void setAid(Long aid) {
		this.aid = aid;
	}
	public String getAidStr() {
		return aidStr;
	}
	public void setAidStr(String aidStr) {
		this.aidStr = aidStr;
	}
	public short getType() {
		return type;
	}
	public void setType(short type) {
		this.type = type;
	}
	public CommandLine getCl() {
		return cl;
	}
	public void setCl(CommandLine cl) {
		this.cl = cl;
	}
	public String getCmdText() {	
		return cmdText;
	}
	public void setCmdText(String cmdText) {
		this.cmdText = cmdText;
	}
	
	@Override
	public String toString(){
		return "CmdPojo{" +
		" type=" + String.format("%1$4S", type) +
		", cmdText=" + cmdText +
		", aid=" + aid +
        '}';
	}
	public String getRes() {
		return res;
	}
	public void setRes(String res) {
		this.res = res;
	}
	
}
